#include <iostream>
#include <string>
#include <iomanip>
#include <stdexcept>
#include <algorithm>
#include <list>
#include "grade.h"
#include "Student_info.h"
using namespace std;


int main() 
{ 
	//TODO
	vector<Student_info> students;
	Student_info record;
	while (record.read(cin)) {
		students.push_back(record);
	}
	sort(students.begin(), students.end(), compare);
	for (auto it=students.begin(); it!=students.end();it++){
		double grade=it->grade();
		cout << it->name() << "'s final grade is " <<fixed<< setprecision(1) << grade<< endl;
	}
	//Tom's final grade is 74.8
	return 0; 
}
